<?php
/*
Plugin Name: LightPress Stats
Plugin URI: http://lightpress.org/
Description: Quick 'n' dirty plugin to display ludo's logged stats
Version: 0.1
Author: Jerome Lavigne
Author URI: http://vapourtrails.ca
*/

$lpstats_version = 0.1;

// installation
function lpstats_install() {
    if (get_settings('lpstats_version') < $lpstats_version) {
    
    }
    
}

function lpstats_extend_menu() {
    add_menu_page('LightPress Statistics', 'Stats', 6, 'lp-stats/page-hits.php');
    add_submenu_page('lp-stats/page-hits.php', 'LightPress Page Hits', 'Page Hits', 6, 'lp-stats/page-hits.php');
    add_submenu_page('lp-stats/page-hits.php', 'LightPress Referrers', 'Referrers', 6, 'lp-stats/referrers.php');
    add_submenu_page('lp-stats/page-hits.php', 'LightPress Hit Details', 'Details', 6, 'lp-stats/details.php');
}

add_action('admin_menu', 'lpstats_extend_menu');

?>